
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.List,br.com.techfor.model.Funcionario"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Listar Funcionarios</title>

<script type="text/javascript"></script>
</head>

<jsp:include page="cabecalho.jsp"></jsp:include>

<body>




<div align="center">

<table
	style="color: #004080; font-size: 10px; font-family: Tahoma, Verdana, Arial, Sans-Serif;"
	border="1" bordercolor="gray" cellpadding="5">

		<tr
			style="color: #004080; font-size: 12px; font-family: Tahoma, Verdana, Arial, Sans-Serif; font-weight: bold">

			<th>Nome</th>
			<th>Apelido1</th>
			<th>Apelido2</th>
			<th>Celular</th>
			<th>Telefone</th>
			<th>Setor</th>
			<th>Status</th>
			<th colspan="1">Editar</th>
			<th colspan="1">Excluir</th>
		</tr>
		
		

	<%
		String style = "'color: navy; text-align: center; font-size:small;'";
		List<Funcionario> funcionarios = (List<Funcionario>)request.getAttribute("funcionarios");
		for (Funcionario funcionario : funcionarios) {
	%>
	<tr style="<%=style%>">
	  
		<td><%=funcionario.getNome()%></td>
		<td><%=funcionario.getApelido1()%></td>
		<td><%=funcionario.getApelido2()%></td>
		<td><%=funcionario.getCelular()%></td>
		<td><%=funcionario.getTelefone()%></td>
		<td><%=funcionario.getSetor()%></td>
		<td><%=funcionario.getStatus()%></td>
		 
		
        <td><a href="atualizafuncionario?id=<%=funcionario.getId()%>">Editar</a></td> 
         <td><a href="excluirfuncionario?id=<%=funcionario.getId()%>">Excluir</a></td> 
		</tr>
	<%
		style = style
					.equals("'color: navy; text-align: center; font-size:small;'") ? "'background-color: #66C; color: white; text-align: center; font-size:small;'"
					: "'color: navy; text-aling: center; font-size:small;'";
		}
	%>
</table>
</div>

</body>
<jsp:include page="rodape.jsp"></jsp:include>
<li> <a  href="index.jsp">Home</a></li> 
</html>